package cn.sunxyz.behavior.command;

/**
 * Created by yangrd on 2017/5/13.
 */
public class MyCommand implements Command {
    private Receiver receiver;

    public MyCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        System.out.println("传递命令");
        receiver.action();
    }
}
